<template>
  <div class="info">
    <el-form label-width="120px">
      <el-form-item label="公司名称">
        <el-input v-model="info.name" disabled />
      </el-form-item>
      <el-form-item label="公司地址">
        <el-input v-model="info.companyAddress" disabled />
      </el-form-item>
      <el-form-item label="公司电话">
        <el-input v-model="info.companyPhone" disabled />
      </el-form-item>
      <el-form-item label="公司邮箱">
        <el-input v-model="info.mailbox" disabled />
      </el-form-item>
      <el-form-item label="备注">
        <el-input v-model="info.remarks" disabled />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { getinfo } from '@/api/setting'
export default {
  data() {
    return {
      info: ''
    }
  },
  created() {
    this.getDate()
  },
  methods: {
    async getDate() {
      const { data: res } = await getinfo(this.$store.state.user.companyId)
      console.log(res)
      this.info = res
    }
  }
}
</script>

<style lang="scss" scoped>
.info {
  width: 500px;
  margin-top: 20px;
}
</style>
